<?php

	function usDate2gerDate($date)
	{
		$tmp = date_create($date);
		$result = date_format($tmp, "d.m.Y");
		return $result;
	}

	function gerDate2usDate($date)
	{
		$tmp = date_create($date);
		$result = date_format($tmp, "Y-m-d");
		return $result;
	}

	function usDay2gerDay($day){
		if($day == 'Monday') return 'Montag';
		if($day == 'Tuesday') return 'Dienstag';
		if($day == 'Wednesday') return 'Mittwoch';
		if($day == 'Thursday') return 'Donnerstag';
		if($day == 'Friday') return 'Freitag';
		if($day == 'Saturday') return 'Samstag';
		if($day == 'Sunday') return 'Sonntag';
		if($day == 'Mon') return 'Mo';
		if($day == 'Tue') return 'Di';
		if($day == 'Wed') return 'Mi';
		if($day == 'Thu') return 'Do';
		if($day == 'Fri') return 'Fr';
		if($day == 'Sat') return 'Sa';
		if($day == 'Sun') return 'So';
	}
	
	